import Vue from 'vue'
import App from './App.vue'
import router from './router'
// iconfont
import '@/assets/iconfont/iconfont.css'
// vant
import { Grid, GridItem, Uploader, Popup, List, Picker, DropdownMenu, DropdownItem, Dialog, IndexBar, IndexAnchor, CellGroup, Icon, Search, Col, Row, Button, Tabbar, TabbarItem, NavBar, Form, Field, Toast, Cell, Swipe, SwipeItem } from 'vant'
import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: '0Mirsgtw7lT8PIVDhAp55UmtT5ObQjE5'
})

Vue.use(Uploader)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Icon)
Vue.use(Cell)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.use(Button)
Vue.use(Tabbar)
Vue.use(TabbarItem)

Vue.use(Swipe)
Vue.use(SwipeItem)

Vue.use(Col)
Vue.use(Row)

Vue.use(Search)
Vue.use(Toast)

Vue.use(CellGroup)

Vue.use(IndexBar)
Vue.use(IndexAnchor)

// 全局注册
Vue.use(Dialog)

Vue.use(DropdownMenu)
Vue.use(DropdownItem)

Vue.use(Picker)

Vue.use(List)

Vue.use(Popup)

Vue.use(Uploader)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
